import App from './App'
import routerPlugin from  '@/router/plugin';
import store from '@/store/index';
import vueStore from '@/store/mixin';
import storePlugin from '@/store/plugin';
import httpPlugin from '@/http/plugin';
import { useLoginStatus } from '@/hooks/useLoginStatus';
import prompt from '@/utils/prompt';



const { plugin } = useLoginStatus();


// #ifdef VUE3
import { createSSRApp } from 'vue'

const app = createSSRApp(App);

function createApp() {
	app.use(prompt);
	app.use(routerPlugin);
	app.use(store)
	app.mixin(vueStore)
	app.use(storePlugin)
	app.use(httpPlugin)
	app.use(plugin());
	return {
		app
	}
}


export {
	createApp,
	app
}
// #endif